package com.mapper.repository.mysql;

import com.bean.WebsiteContent;
import org.springframework.data.jpa.repository.JpaRepository;

public interface WebsiteContentRepository extends JpaRepository<WebsiteContent,String> {

    //新增之前 判断是否存在
    int countByLink(String link);

    //更新之前 判断是否存在
    int countByLinkAndIdIsNot(String link,String id);

    //精确查询
    WebsiteContent getWebsiteContentByName(String name);

}
